#ifndef PINQDOCUMENT_H
#define PINQDOCUMENT_H

#include <QikDocument.h>
#include "PinQPreferences.h"

class CPinQModel;
class CQikApplication;
class RWriteStream;
class RReadStream;

class CPinQDocument : public CQikDocument
	{
public:
	static	CPinQDocument*	NewL(CQikApplication& aApp);
	~CPinQDocument();
	CPinQModel& PinQModel() const {return *iPinQModel;}
	TPinQPreferences& Preferences() {return iPreferences;}
	void StoreL(CStreamStore& aStore, CStreamDictionary& aStreamDic) const;
	void RestoreL(const CStreamStore& aStore, const CStreamDictionary& aStreamDic);
	
private: 
	CEikAppUi* CreateAppUiL();
	
	CPinQDocument(CQikApplication& aApp);
	void ConstructL();

private:
	CPinQModel* iPinQModel;
	TPinQPreferences iPreferences;
	};

// vim: ts=2:sw=2
#endif
